package clientGUI.user.ISD;

import javax.swing.JTabbedPane;

import college.RequestTreatment;
import college.RequestTreatment.RequestStage;
import college.User.UserTypes;

import clientGUI.CollegeClientGUI;

import clientGUI.userPanels.UPanel;
import clientserver.Client;
import clientserver.QueryResult;

public class ISDChoose extends JTabbedPane {

private int rid = 0;
private    ISDChooseSupervisor supervisortab;
private		ISDChooseCommision commisiontab;
private     ISDReport   reporttab;
private     ISDRequestWatch requeststab;
private  ISDUserInfoPanel iuip;

private Client connectedclient;

	public ISDChoose(Client cl) {
 
connectedclient=cl;

QueryResult qr=RequestTreatment.getallrequestsbystage("ONLYADDED", cl);
if (!(qr.rowsize() == 0))
{
String   s=qr.getString("id");

int rid= Integer.parseInt(s);
}
 supervisortab= new ISDChooseSupervisor(rid,connectedclient);
 commisiontab =new ISDChooseCommision(connectedclient);
 reporttab=new ISDReport(connectedclient);
 requeststab= new ISDRequestWatch(connectedclient);
 iuip = new ISDUserInfoPanel(connectedclient);
 this.add(iuip);
 this.add(supervisortab);
 this.add(commisiontab);
 this.add(reporttab);
 this.add(requeststab);
	
	}
	



	
	

}
